package com.zed.code.model;

import java.io.Serializable;
import java.util.Date;

/**
 * DeviceStatusInfo
 * @author 
 */
public class Devicestatusinfo implements Serializable {
    private Integer id;

    private Integer stationid;

    private String deviceid;

    private Date viewdatetime;

    private Date dataupdatetime;

    private Integer status;

    private Integer contraststatus;

    private String remark;

    private Byte port;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStationid() {
        return stationid;
    }

    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public Date getViewdatetime() {
        return viewdatetime;
    }

    public void setViewdatetime(Date viewdatetime) {
        this.viewdatetime = viewdatetime;
    }

    public Date getDataupdatetime() {
        return dataupdatetime;
    }

    public void setDataupdatetime(Date dataupdatetime) {
        this.dataupdatetime = dataupdatetime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getContraststatus() {
        return contraststatus;
    }

    public void setContraststatus(Integer contraststatus) {
        this.contraststatus = contraststatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Byte getPort() {
        return port;
    }

    public void setPort(Byte port) {
        this.port = port;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Devicestatusinfo other = (Devicestatusinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStationid() == null ? other.getStationid() == null : this.getStationid().equals(other.getStationid()))
            && (this.getDeviceid() == null ? other.getDeviceid() == null : this.getDeviceid().equals(other.getDeviceid()))
            && (this.getViewdatetime() == null ? other.getViewdatetime() == null : this.getViewdatetime().equals(other.getViewdatetime()))
            && (this.getDataupdatetime() == null ? other.getDataupdatetime() == null : this.getDataupdatetime().equals(other.getDataupdatetime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getContraststatus() == null ? other.getContraststatus() == null : this.getContraststatus().equals(other.getContraststatus()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getPort() == null ? other.getPort() == null : this.getPort().equals(other.getPort()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStationid() == null) ? 0 : getStationid().hashCode());
        result = prime * result + ((getDeviceid() == null) ? 0 : getDeviceid().hashCode());
        result = prime * result + ((getViewdatetime() == null) ? 0 : getViewdatetime().hashCode());
        result = prime * result + ((getDataupdatetime() == null) ? 0 : getDataupdatetime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getContraststatus() == null) ? 0 : getContraststatus().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getPort() == null) ? 0 : getPort().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stationid=").append(stationid);
        sb.append(", deviceid=").append(deviceid);
        sb.append(", viewdatetime=").append(viewdatetime);
        sb.append(", dataupdatetime=").append(dataupdatetime);
        sb.append(", status=").append(status);
        sb.append(", contraststatus=").append(contraststatus);
        sb.append(", remark=").append(remark);
        sb.append(", port=").append(port);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}